package com.symone.webcms.service;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.symone.webcms.model.Menu;
import com.symone.webcms.model.vo.MenuVO;

import java.util.List;

/**
 * @author Archer Chu
 * @description : Menu 服务接口
 * ---------------------------------
 * @since 2019-01-02
 */
public interface MenuService extends IService<Menu> {

    boolean insert(MenuVO menu);

    boolean update(MenuVO menu);

    Page<Menu> findPage(Page<Menu> page, Wrapper<Menu> menu);

    List<Menu> findAll();

    int delete(long id);

    boolean deleteFlagById(long id);

    int clear();

}
